package com.lin.cloud.disk.shiro.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.shiro.authc.AuthenticationToken;

import javax.validation.constraints.NotNull;

/**
 * @author ljc
 * @date 2020/12/26 15:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserShiroLogin implements AuthenticationToken {
    private String userName;
    private String password;
    private Long companyId;

    @Override
    public Object getPrincipal() {
        return userName;
    }

    @Override
    public Object getCredentials() {
        return password;
    }
}
